//
//  ServiceCell.m
//  UKanDemo
//
//  Created by liliang on 15/1/5.
//  Copyright (c) 2015年 HanYouApp. All rights reserved.
//

#import "ServiceCell.h"
#import "UIImageView+WebCache.h"


@implementation ServiceCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)setData:(NSDictionary *)dataDict
{
    
    NSString *imgStr                = dataDict[@"appfile"];
    NSString *serviceLabelStr       = dataDict[@"shop_name"];
    NSString *detailLabelStr        = dataDict[@"js"];
    NSString *costLabelStr          = [NSString stringWithFormat:@"%.2f%@",[[dataDict objectForKey:@"saleprice"] floatValue],kLocal(@"yuan_year")];
    NSString *scanLabelStr          = dataDict[@"gys"];
    
    [self.Img sd_setImageWithURL:[NSURL URLWithString:imgStr] placeholderImage:[UIImage imageNamed:@"pic2"]];
    self.Title.text                 = serviceLabelStr;
    self.Detail.text                = detailLabelStr;
    self.PriTitle.text              = costLabelStr;
    self.GysTitle.text              = scanLabelStr;
}


@end
